<?php echo $header; ?>
<!--#content-->
	<div id="content" class="clearfix">
		<div class="wrapper">			 
		<?php echo $column_right; ?>
		
	<div id="primary" class="hfeed">
	
	<div id="left-indent">
      
	 <div id="border-style">
				
		<div class="box">
				 	
			<div class="published"><h2 class="entry-title" ><a href="<?php echo $cateUrl;?>#right-indent" style="color:white;"><?php echo $cateName;?></a></h2></div>
			
			<div class="product">
				<div class="avatar">
					<a class="ava" rel="prettyPhoto[tensanpham]" href="<?php echo $popup; ?>" "><img src="<?php echo $thumb; ?>" width="300" /></a>									
					 <?php if ($images) { ?>
					      <div style="margin-left:4px;">
					        <?php foreach ($images as $image) { ?>
					        <a href="<?php echo $image['popup']; ?>" rel="prettyPhoto[tensanpham]" target="_blank"><img src="<?php echo $image['thumb']; ?>" width="64" height="64" /></a>      
					        <?php } ?>
					      </div>
					 <?php }?>
				
				</div>
				<div class="about">
					<h1 class="name"><?php echo $heading_title; ?></h1>
						<script type="text/javascript">
				        function fbs_click(){
				          u=encodeURIComponent(window.location.href);
				          t=encodeURIComponent("<?php echo $heading_title; ?>");
				          i=encodeURIComponent("<?php echo $image['thumb']; ?>");
				          d=encodeURIComponent("<?php echo str_replace(array("\r\n", "\n", "\r"),"<br>",trim(strip_tags(html_entity_decode($description)))); ?>");
				          window.open(
				            'http://fb-share-control.com?u='+u+'&amp;t='+t+'&amp;i='+i+'&amp;d='+d,
				            'sharer','toolbar=0,status=0,width=800,height=600');
				          return false;
				        }
				      </script>
					<img src="image/fb_share_button.jpg" width="50" height="18" style="cursor: pointer;" onclick="fbs_click()" />
					<br>
					<br>
					<span class="tt">Mã số : <span style="color:red;"><?php echo $model; ?></span></span>
					<br><br>
					<span class="tt">Giá tiền : <span style="color:red;">Call</span></span>
					<br><br>
					<div class="desc"><?php echo $description; ?></div>
					<br>
				</div>
				
				<div style="clear:both;"></div>

			</div>
			<br>
			<div class="clear"></div>
			<br>
			<div class="another">
				<h3>Các Sản Phẩm Khác</h3>
				<br>
				   <?php if ($products) { ?>
				   <?php for ($i = 0; $i < sizeof($products); $i++) { ?>
						<a href="<?php echo str_replace('&', '&amp;', $products[$i]['href']); ?>#right-indent">
							<span style="color:black;"> <?php echo $products[$i]['name']; ?> </span> - <span > Giá <?php echo $products[$i]['price']; ?> </span>
						</a>
						<br><br>
					<?php }?>
				   <?php } else { ?>
				      <div style="background: #F7F7F7; border: 1px solid #DDDDDD; padding: 10px; margin-bottom: 10px;"><?php echo $text_no_related; ?></div>
				   <?php } ?>	
			</div>
		</div>

	
		</div>
<div class="right-bot-corner">
<div class="left-bot-corner"></div>
</div>
	 
   </div>
</div>
<!--END #primary .hfeed-->
					
	</div>
</div><!-- END #content -->		
<?php echo $footer; ?> 